import { defineStore } from 'pinia'
import { ref } from 'vue'
import defaultConfig from '@/config.js'

export const useConfigStore = defineStore('config', () => {
  const config = ref(defaultConfig)
  const setConfig = (val) => {
    config.value = val
  }
  return {
    config,
    setConfig
  }
})